import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '工作日',
    align: "center",
    dataIndex: 'workingDay_dictText'
  },
  {
    title: '上班时间',
    align: "center",
    dataIndex: 'workingTime'
  },
  {
    title: '上班迟到时间',
    align: "center",
    dataIndex: 'workingLateTime'
  },
  {
    title: '上班旷工时间',
    align: "center",
    dataIndex: 'workingAbsenteeismTime'
  },
  {
    title: '下班时间',
    align: "center",
    dataIndex: 'offdutyTime'
  },
  {
    title: '下班早退时间',
    align: "center",
    dataIndex: 'earlyDepartureTime'
  },
  {
    title: '定位中心经纬度',
    align: "center",
    dataIndex: 'orientation'
  },
  {
    title: '不参与打卡人员',
    align: "center",
    dataIndex: 'dropOutMan_dictText'
  },
  {
    title: '是否展示假期',
    align: "center",
    dataIndex: 'isShowHolidays_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  workingDay: {title: '工作日',order: 0,view: 'checkbox', type: 'string',dictCode: 'workingDayType',},
  workingTime: {title: '上班时间',order: 1,view: 'time', type: 'string',},
  workingLateTime: {title: '上班迟到时间',order: 2,view: 'time', type: 'string',},
  workingAbsenteeismTime: {title: '上班旷工时间',order: 3,view: 'time', type: 'string',},
  offdutyTime: {title: '下班时间',order: 4,view: 'time', type: 'string',},
  earlyDepartureTime: {title: '下班早退时间',order: 5,view: 'time', type: 'string',},
  orientation: {title: '定位中心经纬度',order: 6,view: 'text', type: 'string',},
  dropOutMan: {title: '不参与打卡人员',order: 7,view: 'sel_user', type: 'string',},
  isShowHolidays: {title: '是否展示假期',order: 8,view: 'radio', type: 'string',dictCode: 'yn',},
};
